#! /bin/bash
SCRIPT_BASE_DIR=$( dirname "${BASH_SOURCE[0]}" )
source "${SCRIPT_BASE_DIR}/common/fs_utils.sh"

araXmls=()
araXmls[${#araXmls[@]}]=/usr/share/ara-arxmls/AUTOSAR_MOD_StandardTypes.arxml
araXmls[${#araXmls[@]}]=/usr/share/ara-arxmls/shared_types.arxml
araXmls[${#araXmls[@]}]=/usr/share/ara-arxmls/machine_manifest.arxml
araXmls[${#araXmls[@]}]=/usr/share/ara-arxmls/network_manifest.arxml
araXmls[${#araXmls[@]}]=/usr/share/ara-arxmls/system_components.arxml

araXmls[${#araXmls[@]}]=common/model/radar_svc.arxml 
araXmls[${#araXmls[@]}]=common/model/system_manifest_someip.arxml
araXmls[${#araXmls[@]}]=radar/manifest/radar_mappings_someip.arxml
araXmls[${#araXmls[@]}]=radar/manifest/radar_service_app.arxml
araXmls[${#araXmls[@]}]=radar/manifest/radar_service_proc.arxml

for araXml in "${araXmls[@]}"
do
    file_exists_or_die "${araXml}"
done

dir_exists_or_die gen

aragen -o gen "${araXmls[@]}"
